install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libutf8proc.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
# Install CMake targets file.
install(EXPORT utf8proc-targets FILE utf8proc-targets.cmake DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/utf8proc" NAMESPACE utf8proc::)
+ include (CMakePackageConfigHelpers)
+ configure_package_config_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake/utf8proc-config.cmake.in"
+ "${CMAKE_CURRENT_BINARY_DIR}/utf8proc-config.cmake"
+ INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/utf8proc"
+ NO_SET_AND_CHECK_MACRO
+ )
+ install (FILES
+ "${CMAKE_CURRENT_BINARY_DIR}/utf8proc-config.cmake"
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/utf8proc"
+ )
endif()
--- /dev/null
+@PACKAGE_INIT@
+include("${CMAKE_CURRENT_LIST_DIR}/utf8proc-targets.cmake")
+# `check_required_components` is used to ensure consumer did not erroneously request components.
+# No components are currently defined.
+check_required_components(utf8proc)